//
//  ProductView.m
//  HJB_project
//
//  Created by panquanReabam.com on 15-5-27.
//  Copyright (c) 2015年 jiezsoft.com. All rights reserved.
//

#import "ProductView.h"

@implementation ProductView
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
//        self.layer.borderWidth = 1;
//        self.layer.borderColor = LineColor.CGColor;
        
        _buttonView = [UIButton buttonWithType:UIButtonTypeCustom];
        _buttonView.frame = CGRectMake(0, 0, self.width, 26);
        [_buttonView.layer setCornerRadius:13.0];
        [_buttonView.layer setBorderWidth:0.43];
        [_buttonView.layer setMasksToBounds:YES];
        CGColorSpaceRef colorSpace2 = CGColorSpaceCreateDeviceRGB();
        CGColorRef colorref2 = CGColorCreate(colorSpace2,(CGFloat[]){23/255.0,148/255.0, 152/255.0, 1.0   });
        [_buttonView.layer setBorderColor:colorref2];//边框颜色
    
        _label_price=[[UILabel alloc]initWithFrame:CGRectMake(0,40, ScreenWidth/3-15,40)];
      
        _label_price.textColor=luseColor;
        _label_price.font=[UIFont systemFontOfSize:conten14fot];
        _label_price.textAlignment=NSTextAlignmentCenter;
        [_buttonView addSubview:_label_price];

        [self addSubview:_buttonView];
        
        
        
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
